﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DiplomNN
{
    public partial class AddNewPictureForm : Form
    {
        private string FolderPath;
        public AddNewPictureForm()
        {            
            InitializeComponent();            
        }

        private void TBPictureName_TextChanged(object sender, EventArgs e)
        {
            FolderPath = TBPictureName.Text;
        }

        private void BAddPicture_Click(object sender, EventArgs e)
        {
            TrainingForm.SelfRef.AddNewPicture(FolderPath);
            this.Close();
        }

        private void BCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

    }
}
